package cn.tedu.community.commons.pojo.user.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class UserForGotPassDTO {
    @NotNull(message = "请输入您的手机号")
    @Pattern(regexp = "^1[3-9]\\d{9}$",
            message = "手机号码格式不正确,请重新输入!")
    private String userPhone;

    @NotNull(message = "请输入密码！")
    @Pattern(regexp = "^[a-zA-Z0-9]{8,18}$",
            message = "请输入8-18位包含英文、数字的密码！")
    private String userPassword;

    @NotNull(message = "请再次输入密码！")
    @Pattern(regexp = "^[a-zA-Z0-9]{8,18}$",
            message = "请输入8-18位包含英文、数字的密码！")
    private String confirmPassword;
}
